package com.bulletelc.apollopre.module.main.center.orders.orderComment;

import com.bulletelc.apollopre.entity.OrderItemCommentBean;
import com.bulletelc.apollopre.framework.IPresenter;
import com.bulletelc.apollopre.framework.IView;

import java.util.List;

/**
 * Created by CX on 2018/2/2.
 */

public class FinishCommentContract {

    interface View extends IView {
        void onSuccessGetOrderDetail(List<OrderItemCommentBean> oicList);
        void onFailGetOrderDetail(String fail);
        void onErrorGetOrderDetail(String error);

        void onSuccessPostComment();
        void onFailPostComment(String fail);
        void onErrorPostComment(String error);
    }

    interface Presenter extends IPresenter<View> {
        void getOrderDetail(String orderId);

        void postComment(String json);
    }
}
